tools/xl: fix race which can leave an xl monitor processing hanging
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 16 Dec 2010 17:39:24 +0000 (17:39 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 16 Dec 2010 17:39:24 +0000 (17:39 +0000)
commit08d26f71bcb73e9f799515324539cb0348ce1c00
treee7b40046542f260299184840fb000360200c29eb
parent823128938565f294a31932b27fdfab43c4274be0
tools/xl: fix race which can leave an xl monitor processing hanging

If the domain is destroyed (eg with xl destroy), it is possible that
the xl which is monitoring the domain for restart/preserve will not be
able to get the domain shutdown reason.

Before this patch, it would then ignore the domain death event and
carry on waiting, forever, for more events.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c